package com.hellogood.work.evaluate.client;

import com.hellogood.work.evaluate.client.customer.CustomerTab;
import com.hellogood.work.evaluate.client.product.ProductTab;
import com.hellogood.work.evaluate.client.service.ServiceTab;
import com.hellogood.work.evaluate.client.user.UserTab;
import com.smartgwt.client.widgets.layout.HLayout;
import com.smartgwt.client.widgets.tab.TabSet;

public class MainPanel extends HLayout {
	
	private String loginUserCode = null;	
	private TabSet tabSet = null;	

	public MainPanel() {
		initData();
		initView();
	}

	private void initData() {}

	private void initView() {
		TaskListTab taskListTab = new TaskListTab();
		UserTab userTab = new UserTab();
		ProductTab productTab = new ProductTab();		
		ServiceTab serviceTab = new ServiceTab();
		CustomerTab customerTab = new CustomerTab();
		tabSet = new TabSet();
		tabSet.addTab(taskListTab);
		tabSet.addTab(userTab);
		tabSet.addTab(productTab);
		tabSet.addTab(serviceTab);
		tabSet.addTab(customerTab);
		tabSet.setSize("100%", "100%");
		addMember(tabSet);

		setMargin(10);
		setWidth100();
		setHeight100();
	}

	}
